<?php

/**
 * @author shuang
 * @date 2016-10-26 11:52:59
 */
use yii\helpers\Url;
use yii\bootstrap\Html;
use common\components\MTools;
use yii\helpers\ArrayHelper;

$this->registerCssFile("/js/ui-dialog.css");
$this->registerJsFile("/js/dialog-plus-min.js", [\yii\web\JqueryAsset::className(), "depends" => "\yii\web\JqueryAsset"]);
$this->registerJsFile("/js/task.js", [\yii\web\JqueryAsset::className(), "depends" => "\yii\web\JqueryAsset"]);
$this->registerJs('task.checkimage();');
?>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12 well ibox float-e-margins">
            <div class="ibox-title">投诉列表</div>
            <div class="well-content ibox-content">
                <?php echo MTools::getTemplate("task-tousu-list.html");?>
                <div class="table-responsive">
                    <table id="table1" class="table dataTable no-footer" role="grid" aria-describedby="table1_info">
                        <thead>
                            <tr role="row">
                                <th style="width: 10%" aria-sort="ascending">编号</th>
                                <th style="width: 30%">任务名称</th>
                                <th style="width: 30%">投诉状态</th>
                                <th style="width: 10%">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php foreach ($data as $item): ?>
                                <tr>
                                    <td><?php echo $item["taskid"]; ?></td>
                                    <td><?php echo $item["title"]; ?></td>
                                    <td><span class="complaincolor<?php echo $item["is_complain"];?>"><?php echo ArrayHelper::getValue(frontend\models\WB_UserTaskOperate::$complain, $item["is_complain"]); ?></span></td>
                                    <td><a style="padding: 8px 12px;" class="btn btn-success imgshow" href="javascript:;" imgsrc="<?php echo MTools::Qiniunow480($item["task_image"]);?>">查图</a></td>
                                </tr>
                            <?php endforeach; ?>
                        </tbody>
                    </table>
                </div>
                <div class="pagination" style="float:right;">
                    <?php
                    echo
                    \yii\widgets\LinkPager::widget([
                        'pagination' => $pager,
                        'nextPageLabel' => '下一页',
                        'prevPageLabel' => '上一页',
                    ]);
                    ?>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $this->beginBlock('imgshow'); ?>
       
<?php $this->endBlock(); ?>  
<?php $this->registerJs($this->blocks['imgshow'], \yii\web\View::POS_END); ?>  